/*
 * @Description: 预览组件样式
 * @Author: Rfan
 * @Date: 2022-03-03 18:08:19
 * @LastEditTime: 2022-09-22 18:20:26
 */

.jp-preview {
  :global .ant-modal {
    overflow-y: auto;
    transition: width 0.5s;

    .ant-modal-content {
      height: 100%;
    }

    .ant-modal-body {
      // transition: height .5s;
      overflow: auto;
    }
  }
}

.preview-wrap {
  display: flex;
  height: 100%;

  .nav {
    $nav-width: 240px;

    flex: 0 0;
    flex-basis: $nav-width;
    width: $nav-width;

    :global .ant-collapse-item-active {
      height: calc((80vh - 55px - 48px) / 2);

      .ant-collapse-content {
        height: calc(100% - 46px);
        overflow: auto;
      }
    }

    :global .ant-collapse-item-disabled {
      .ant-collapse-header {
        color: inherit;
        cursor: default;
      }
    }

    .record-info {
      :global .ant-form-item {
        margin-bottom: 0;
      }
    }

    .e-record__table {
      margin: -16px;
    }
  }

  .content {
    flex: auto;
    padding-left: 15px;
  }
}

.nav {
  :global .ant-collapse-item-active {
    height: calc((100vh - 55px - 48px) / 2);

    .ant-collapse-content {
      height: calc(100% - 46px);
      overflow: auto;
    }
  }

  :global .ant-collapse-item-disabled {
    .ant-collapse-header {
      color: inherit;
      cursor: default;
    }
  }

  .record-info {
    :global .ant-form-item {
      margin-bottom: 0;
    }
  }

  .e-record__table {
    margin: -16px;
  }
}

.content {
  display: flex;
  flex-direction: column;

  .operate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;

    > h4 {
      margin-bottom: 0;
    }
  }

  .detail {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 450px;
  }
}
